export default function FileApi() {
    let _u = uni.$u
    return {
        // 图片上传接口
        uploadImg: (params: any) => {
            return _u.post('/file/file-qualifications/uploadQualifications', params, {
                useMask: true,
                useFormParam: true
            })
        },
        //上传头像图片
        uploadAvatar: (params: any) => {
            return _u.post('/file/file-view/uploadHeadPicUrl', params, {
                useFormParam: true
            })
        },
        // 营业执照 OCR识别
        getOCRByID: (params: any) => {
            return _u.post('file/file-qualifications/getOCRByID', params, {
                useMask: true
            })
        },
        // 身份证OCR
        getIdentityOCRByID: (params: any) => {
            return _u.post('/file/file-qualifications/getIdentityOCRByID', params, {
                useMask: true
            })
        },
        // 开户许可证OCR
        getBankOCRByID: (params: any) => {
            return _u.post('/file/file-qualifications/getBankOCRByID', params, {
                useMask: true
            })
        },
        // 银行卡 OCR
        distinguishBankCard: (params: any) => {
            return _u.post('/file/file-qualifications/getBankCardOCRByID', params)
        }
    }
}
